package two;
/**
 * @Author:DarknessShadow
 * @description:主测试程序
 * @date 2020/5/12 10:23
 */
public class Main extends Thread {
    public static void main(String[] args) {
        System.out.println("start.....");
        new Main("A").start();
        new Main("B").start();
        new Main("C").start();
        new Main("D").start();
        System.out.println("End.....");
    }
    public void run(){
        Singleton singleton = Singleton.getInstance();
        System.out.println(getName() + ": obj = " + singleton);
    }
    public Main(String name) {
        super(name);
    }
}
